import React, { useState } from 'react'

export default function FunctionFn() {
    const [count, setCount] = useState(10)
    const handleClick = () => {
        setCount(count + 1)
    }
    return (
        <div>
            <h1>函数组件</h1>
            <h2>{count}</h2>
            <button onClick={handleClick}>Click me</button>
        </div>
    )
}

